/////////////////////////////////////////////////////////////////////////////
// Name:        ApplyDialog.h
// Purpose:     
// Author:      yospaly
// Modified by: 
// Created:     14/01/2009 16:18:06
// RCS-ID:      
// Copyright:   Copyright (C) 2008, yospaly
// Licence:     
/////////////////////////////////////////////////////////////////////////////

#ifndef _APPLYDIALOG_H_
#define _APPLYDIALOG_H_


/*!
 * Includes
 */

////@begin includes
////@end includes

/*!
 * Forward declarations
 */

////@begin forward declarations
////@end forward declarations

/*!
 * Control identifiers
 */

////@begin control identifiers
#define ID_APPLY_DIALOG 10039
#define ID_CHANGES_TEXTCTRL 10040
#define SYMBOL_APPLYDIALOG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
#define SYMBOL_APPLYDIALOG_TITLE _("Apply changes")
#define SYMBOL_APPLYDIALOG_IDNAME ID_APPLY_DIALOG
#define SYMBOL_APPLYDIALOG_SIZE wxSize(400, 300)
#define SYMBOL_APPLYDIALOG_POSITION wxDefaultPosition
////@end control identifiers


/*!
 * ApplyDialog class declaration
 */

class ApplyDialog: public wxDialog
{    
    DECLARE_DYNAMIC_CLASS( ApplyDialog )
    DECLARE_EVENT_TABLE()

public:
    /// Constructors
    ApplyDialog();
    ApplyDialog( wxWindow* parent, wxWindowID id = SYMBOL_APPLYDIALOG_IDNAME, const wxString& caption = SYMBOL_APPLYDIALOG_TITLE, const wxPoint& pos = SYMBOL_APPLYDIALOG_POSITION, const wxSize& size = SYMBOL_APPLYDIALOG_SIZE, long style = SYMBOL_APPLYDIALOG_STYLE );

    /// Creation
    bool Create( wxWindow* parent, wxWindowID id = SYMBOL_APPLYDIALOG_IDNAME, const wxString& caption = SYMBOL_APPLYDIALOG_TITLE, const wxPoint& pos = SYMBOL_APPLYDIALOG_POSITION, const wxSize& size = SYMBOL_APPLYDIALOG_SIZE, long style = SYMBOL_APPLYDIALOG_STYLE );

    /// Destructor
    ~ApplyDialog();

    /// Initialises member variables
    void Init();

    /// Creates the controls and sizers
    void CreateControls();

////@begin ApplyDialog event handler declarations

////@end ApplyDialog event handler declarations

////@begin ApplyDialog member function declarations

    /// Retrieves bitmap resources
    wxBitmap GetBitmapResource( const wxString& name );

    /// Retrieves icon resources
    wxIcon GetIconResource( const wxString& name );
////@end ApplyDialog member function declarations

    /// Should we show tooltips?
    static bool ShowToolTips();

////@begin ApplyDialog member variables
    wxTextCtrl* p_changes_textctrl;
////@end ApplyDialog member variables
public:
	void set_changes(const wxString& text) {
		p_changes_textctrl->SetValue(text);
	}
};

#endif
    // _APPLYDIALOG_H_
